package com.numberone.web.controller.abouthonor;

import java.util.List;

import com.numberone.system.util.JsonResult;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.numberone.common.annotation.Log;
import com.numberone.common.enums.BusinessType;
import com.numberone.system.domain.AboutHonor;
import com.numberone.system.service.IAboutHonorService;
import com.numberone.framework.web.base.BaseController;
import com.numberone.common.page.TableDataInfo;
import com.numberone.common.base.AjaxResult;
import com.numberone.common.utils.poi.ExcelUtil;

/**
 * 企业荣誉 信息操作处理
 * 
 * @author 于沛麟
 * @date 2020-09-27
 */
@RestController
@RequestMapping("/api/aboutHonor")
public class AboutHonorApiController extends BaseController
{

	
	@Autowired
	private IAboutHonorService aboutHonorService;


	/**
	 * 获取企业荣誉相关的数据
	 * @return
	 */
	@GetMapping("/get")
	public  Object getAboutHonor(){

		List<AboutHonor> aboutHonors = aboutHonorService.query();
		if (aboutHonors.isEmpty()){
			return JsonResult.nodata();

		}
		return JsonResult.success(aboutHonors);
	}
	
}
